package com.cmc.cloud.cmclink.doc.vo.limitruleitemvo;

import com.cmc.cloud.cmclink.common.filter.FilterGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import javax.validation.constraints.*;

/**
 * 禁接类明细信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LimitRuleItemBaseVO {

    @Schema(description = "禁用类主id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24457")
    @NotNull(message = "{LimitRuleItemBaseVO.mainId.notblank}")
    private Long mainId;

    @Schema(description = "匹配项")
    @NotNull(message = "{LimitRuleItemBaseVO.matchExpression.notblank}")
    private FilterGroup matchExpression;
}
